package com.nereyda.responses.calendar
{
	import com.nereyda.responses.DefaultSO;
	import com.nereyda.vo.calendar.CategoryVO;
	
	public class GetCategoriesSO extends DefaultSO
	{
		public var categories :Array;
		
		/**
		 * Crea las categorías.
		 */
		override public function makeValueObjects():void
		{
			var categoryList :Array = [];
			
			for each ( var object:Object in this.categories )
			{
				var categoryVO :CategoryVO = new CategoryVO();
				
				categoryVO.copyFrom( object );

				categoryList.push( categoryVO );
			}
			
			this.categories = categoryList;
		}
	}
}